/*
 * MainMenuView.h
 *
 *  Created on: 2011-5-6
 *      Author: Administrator
 */

#ifndef MAINMENUVIEW_H_
#define MAINMENUVIEW_H_

#include <FBase.h>
#include <FUi.h>
#include "IHandleMenuEvent.h"


namespace Galaxy {

class MainMenuView:
	public Osp::Ui::Controls::Form,
    public Osp::Ui::IActionEventListener {
public:
	enum ButtonAction
	{
		BUTTON_ACTION_TUTORIAL,
		BUTTON_ACTION_CAMPAIGN,
		BUTTON_ACTION_RANFIGHT,
		BUTTON_ACTION_TEAM2VS2,
		BUTTON_ACTION_OPTIONS,
		BUTTON_ACTION_RESET,
	};

	MainMenuView(IHandleMenuEvent* pMenuEventHandler);
	virtual ~MainMenuView();
	bool Initialize(void);

public:
	virtual result OnInitializing(void);
	virtual result OnTerminating(void);
	virtual void OnActionPerformed(const Osp::Ui::Control& source, int actionId);
	virtual result OnDraw();

private:
	Osp::Graphics::Bitmap* __pBackgroundBitmap;
	IHandleMenuEvent* __pMenuEventHandler;

};

}

#endif /* MAINMENUVIEW_H_ */
